package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.FullTrayInStaticsBean;
import com.pda.gongpin.bean.ShipmentsStaticsBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class ShipmentsStaticsAdapter extends BaseAdapter<ShipmentsStaticsBean> {
    public ShipmentsStaticsAdapter(int layoutResId, @Nullable List<ShipmentsStaticsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShipmentsStaticsBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_sku,item.getTitle());
        helper.setText(R.id.tv_articleId,"物资编号："+item.getArticleId());
        helper.setText(R.id.tv_articleName,"物资名称："+item.getArticleName());
        helper.setText(R.id.tv_inNum,"应发货："+item.getShouldShipmentsNum()+"");
        helper.setText(R.id.tv_alreadyInNum,"已发货："+item.getAlreadyShipmentsNum()+"");
        helper.setText(R.id.tv_spec,"规格："+item.getArticleSpec()+"");
    }
}
